package com.dh.exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class ExceptionDemo03 {
    public static void main(String[] args) {
        readFile();
    }

    public static void readFile() {
        try {
            FileInputStream inputStream = new FileInputStream("C:\\Users\\Administrator\\Desktop\\2.txt");
        } catch (FileNotFoundException e) {
//            e.printStackTrace();
            // 要处理的代码
            System.out.println("报异常了...." + e.getMessage());
        }

    }
}
